From 3fd3edf3c1c243a831385ae7b8e1ed68bd967461 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 23 Jul 2015 08:59:12 +0100 Subject: [PATCH] xl: free event struct after use in main_shutdown_or_reboot Signed-off-by: Wei Liu Acked-by: Ian Campbell --- tools/libxl/xl_cmdimpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index e90521aa5c..de1c9c029d 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -4781,8 +4781,10 @@ static int main_shutdown_or_reboot(int do_reboot, int argc, char **argv) fallback_trigger); } - if (wait_for_it) + if (wait_for_it) { wait_for_domain_deaths(deathws, nb_domain - 1 /* not dom 0 */); + free(deathws); + } libxl_dominfo_list_free(dominfo, nb_domain); } else { -- 2.30.2